Evolution draws in libsoup, which exposes deprecated types in its
API. While its headers have been fixed to guard the affected symbols,
those fixes aren't in our CI images yet.
Until we get a fixed version, just disable all deprecation warnings
during the include in order to not trip over "foreign" bugs.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/709
#include <string.h>
#define HANDLE_LIBICAL_MEMORY
#define EDS_DISABLE_DEPRECATED
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#include <libecal/libecal.h>
+G_GNUC_END_IGNORE_DEPRECATIONS
#undef CALENDAR_ENABLE_DEBUG
#include "calendar-debug.h"
#define HANDLE_LIBICAL_MEMORY
#define EDS_DISABLE_DEPRECATED
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#include <libecal/libecal.h>
+G_GNUC_END_IGNORE_DEPRECATIONS
#include "calendar-sources.h"